import request from '@/utils/request'

// 查询聊天室申请列表
export function listUserChatroomApply(query) {
  return request({
    url: '/system/userChatroomApply/list',
    method: 'get',
    params: query
  })
}

// 查询聊天室申请详细
export function getUserChatroomApply(id) {
  return request({
    url: '/system/userChatroomApply/' + id,
    method: 'get'
  })
}

// 新增聊天室申请
export function addUserChatroomApply(data) {
  return request({
    url: '/system/userChatroomApply',
    method: 'post',
    data: data
  })
}

// 修改聊天室申请
export function updateUserChatroomApply(data) {
  return request({
    url: '/system/userChatroomApply',
    method: 'put',
    data: data
  })
}

// 删除聊天室申请
export function delUserChatroomApply(id) {
  return request({
    url: '/system/userChatroomApply/' + id,
    method: 'delete'
  })
}

// 导出聊天室申请
export function exportUserChatroomApply(query) {
  return request({
    url: '/system/userChatroomApply/export',
    method: 'get',
    params: query
  })
}